Fix header checksum calculation.

Fix header checksum calculation.
Merge pull request #1 from AntonioND/master

Fix header checksum calculation.