Finished implementing uncertainties

The code now handles uncertainties, and all tests are passing.