adding ability to compute hessian
initial import