Added linfit as fitting algorithm

Also working on the fitting area. Using the whole wavelength intervals, which are emfree and not only the median values