Fixes issue #52: Event detection for variable # of events.
Merge pull request #58 from csu-hmc/issue-52

Fixes issue #52: Event detection for variable # of events.