Fixed wrong definitions

htheta was not using the sigmoid function
there was a minus instead of a multiplication
in the hessian. Many thanks to #phyranja.