[doc] some typos, and I listed the session states in the example