Switch to emitting events
Add some comments
Merge pull request #3 from remind101/events

Switch to emitting events