Updated the error calculation on the linear fitter. Still need to check the covariance matrix with matlabs covariance matrix.