add dump method in EventEmitter, add comments