Changed to use an EventEmitter instead.
Updated documentation to be in line with changes.
PR updates.
Merge pull request #7 from arb/emitter

Changed to use an EventEmitter instead.