Added events and unit tests.
Merge pull request #1 from jameswestgate/version-1.1

Added events and unit tests.