Added writeReport() and printReport() to mail. For stdout and file
reporting.