Restore state machine transitions
Changed versionfile setup, amend doc's