Fix spec to remove errors.
Add state helper definition and flesh out docs.
Add ability to easily query states.
Document state helpers.