Added error handling to the rounding functions. Added better error handling to the non-central chi squared, and updated the tests.