regularize: added 'hessian', renamed 'tuning' to 'shrinkage' and allowed it to be an array.