Started documenting state-machine.js