Modified onexxx handlers to unbind themselve when executed; Reintroduced event fixes (and added some more comments)