Added a control for global optimizer
added a damped version of BFGS which works(to some extent)
minor modifications
Made the global optimizer keyword working properly
defalut is global w BFGS now