cleaned up and added some test/mock code

added test code in main.coffee and etman.coffee.
in main look for the // TODO TEST comments