Calculate checksum modulo 65536
Merge pull request #1 from amatus/master

Calculate checksum modulo 65536