Adding error weighted fit, monte carlo error, spectral index, warnings