added examples in javascript to the readme
changed the test reporter to 'spec'
removed some commented log statements
redid state entering/leaving in StateMachine, removed some unneeded comments