Updated Email Parser

Added code for email parser and passes all test cases.