Refactor report printing mechanism.
Make report file output to local files.