updated checksum handling, examples, code cleanup