modified script paths for new layout
added example using regress
added code to check that the covariance matrix diagonal is positive, and to warn the user if it is not in the regress function. the regress function seems to break down a bit for high order polynomial fits. at least, the output does not agree with matlab.
added a regress test for the negative covariance matrix