Added parameter to only read one of the frames per event
Whitespace changes