fixed jacobian, updated tilt calculation; included tilt residual.