[dispatcher] Updating comments of EventDispatcher, renaming some functions and some performance improves when dispatching event.