added r-squared and adjusted r-squared (to incorporate the number of explanatory variables)
docstring completed