Fixed bug in report. Log file is now emailed after each run