removed legacy debugging code
removed more legacy debugging code
added unit test file for EventEmitter
added compile script for tests