Added the query and update for the regressor

I also fixed some of the unit tests, simply by adjusting the tolerances. They were failing periodically. The range is quite large now though.