Use hamlet// for private variables/functions.
Fix the docstring on calculate-next-indentation.
Fix logic related to indenting the first line.

The old code would infinite loop and do other nasty things.