Allowed wavelength to be fixed in fitting, added new method to fit
functions and further testing code