Add verify_checksum and use it

Also fixed a YARD typo.