fit function returns all output

The fit function returns all output from the leastsquares function.
This should make it easier to debug fitting problems.