added easier handling of event removal and automatic removal from parent mesh on delete. Fixed some memory issue with the hasStarted function.