Documentation cleanup, style fix, and better state on init.

See commit comments.