Generate printable files with filename equivalent to generated markdown.
Remove debug output and limit how much deeper we indent.

Level 9 is the most markdown can handle.
Minor refactoring.

Move initialization of the log file into the qa namespace.