Updated StateManager documentation