Simplified some methods in the parser
Added ability to use a string as an event delegated method.