Changed error types, added an error as part of initialize, and got lbfgs to compile
Fixed initializations, Lbfgs now optimizes sucessfully