Changes to get fitter to mostly work.  Added residuals.py.