Merge pull request #6 from stulees/master

Public API and trigger events