Line shortening.
Improved the error messages for failures for Cobb-Douglas nls curve fit.
Rearranging code.