Fix LBFGS update and add tuning parameters
Change some names