fixed another bunch of typos and now it iterates 50 times, so the Jacobian is off a little.