Added the event API for valid and notvalid events
Updated the documentation and examples