Added prior gradients and jacobians.  Need tests.