changed document format to report template, improved pretty printing.