More documentation for the engine and states.