Adding fit1D function. Still need to add minimization step and make sure it works.