Added code to verify XOR checksum

The string after size and format verification is spilt into integers of
4 bytes and XORed. If final XOR result is !=0 then validation fails
Merge pull request #76 from lakhshya/master

Added code to verify XOR checksum