docs(state): wip documentation for state service