Change search direction when Jacobian is singular
Add .gitignore