Doc strings for Regression functions and some error checking