Where relevant, replaced `model` in documentation for `state`.

@latentflip sorry for the delay. Hereby a pull request for the documentation updates.