Modify Newton stopping criteria.

- set the Newton tolerance based on step-size and position-level precision
- change convergence test to use infinity norm of correction
Cleanup problem specification.