I could not figure out how to disable sending the report in an email. I excluded all parts regarding emails from the script. Maybe you could provide a switch for enabling/disabling email notification.