Correct minor typos and add a limit to nls.

The nls.control addition is untested.