Fixed LeastSquaedRegression errors, still need to fix graphing