added doku, event emitter and example