example and validation added

Hi Aaron, an example and some validation for events has been added.