removed redundant N_ in native lbfgs, cleanup, improved interface