Documentation for states.
Add docs for states.
Fix func state.
Merge branch 'feature/issue-41-document-state-creators' into develop