Adding method to find out what state results from firing of event
Merge pull request #1 from tthyer/end-state

Adding method to find out what state results from firing of event
Fixed bug in validEvents where all events were returned instead of correctly filtered valid events for the current state