restructued jacobian and jfnk routines to fit with new convention