Fixed bug in validEvents where all events were returned instead of correctly filtered valid events for the current state
Merge pull request #2 from tthyer/master

Fixed bug in validEvents