Started documentation for state management