Have been editing Hessian computation. Needs a lot of tidying up still...