Added Hessian calculations
restructure