Fixed mkcmd, set checksum to 0x00 when it's calculated to 0x100
Fixed mkcmd, set checksum to 0x00 when it's calculated to 0x100.
Code cleanup.