Changed the Emitter constructor to accept an associative array of options