Comments
Emitter replaced by events.EventEmitter
Remove unused code
Adapt deprecated code