Added unit tests
Made event parameters optional
Merge pull request #2 from mikecao/master

this is a required field