made some small changes to linear regression, cleaned up some unnecessary
comments