Email Option Additions

I needed the option to email the log outputs to monitor in case of a failure. I also added in the options to write to a log file.