L-BFGS integrated, some bugfixes