Document how to implement check mode

Fixes #2410
Merge pull request #2426 from lorin/dev-checkmode

Document how to implement check mode