Added the option to dispatch just a string as the event. New sample code to demonstrate usage.