Add event system; needs to be tested
Event system; wasn't committed before
Merge pull request #9 from YoshiGenius/master

Adds an event system