change maxEvents to VarParsing
limit msgs for maxevents = -1
bug fix
Merge pull request #31 from jshlee/cat72x

change maxEvents to VarParsing