fixed off-by-one in hessian calculation
Merge remote-tracking branch 'jmuhlich/master'