bugfix for too many header panic
Refactor checksum calculation
Calculate checksum of message body