Clarifications of unexplained code and location of linreg library