Various syntax fixes

Fixes to docstring indentation, output messages, and function
definition syntax.