Add command line parsing and e-mail reporting functionality.