Formatted print substitution.
And unit tests.
LDoc fixes
Add nil checks for buildMessage arguments.