Clean up checksum code in mercury proc and add debug info
Clean up checksum code in mercury proc and add debug info

Use memcmp instead of strncmp for comparing checksums

mercury-hpc/mercury,mercury-hpc/mercury,mercury-hpc/mercury,mercury-hpc/mercury