Added docstring from linfit.py