Renamed raise to emit. Fixes #2
Merge pull request #3 from dcneiner/eventfix

Renamed raise to emit. Fixes #2