added support for Event definitions and Handlers to the parser, added tests and updated docs