Implemented LogParser and improved SendEmail