added comments to FrameEventProcessor. refactored the hadling methods to make them more testable
merging