GLM basis functions and updated lasso script