- fixed bugs and added mail report functionality