change all event listeners to event subscribers. fix #46
Merge pull request #55 from ddeboer/event-subscriber

change all event listeners to event subscribers