Changed the way data is entered into glmnet