Fix scurve fitter issues
A couple of tiny issues fixed but also a big problem getting fixed: the chi2 computation was just wrong (dividing residuals by the number of iterations instead of the number of degrees of freedom).
A couple of tiny issues fixed but also a big problem getting fixed: the chi2 computation was just wrong (dividing residuals by the number of iterations instead of the number of degrees of freedom).