privatize boolean cfg
added docs for event emitter