Pull request for event magic

An event command, and lots of features and fixes to go along with it!