Prevented more undefined exceptions, got rid of ajax exception, reworked validation and added eventhandling
Added type checking for bubble property when adding an event.