Added spline fitting and tuned covariances (made them diagonal).