added event matching
Merge pull request #27 from sbrother/13-add-event-processing

added event matching