refactored the TextFileParser into a stateless class
fixed the code and updated the unit test for GetClosestEventsFilter