Added some events for API

Hey I wanted to use this plugin with my plugins, so I added some event APIs for my use.