Fixed an error in the jacobian. Solution is still not converging.