adding a logfile for errors, incase mailing is completely broken

now logs to working directory exactly who it tried to mail, and if it was unable to mail.  minor stylistic improvements.