Implements the generator objects for iterating through EVT files and cleans up the code.
Clean up the code