Reuse the same cstruct for some header info in chksum calc
Added a simple profiler to time various function.
Merge pull request #21 from balrajsingh/master

checksum fix and added a simple profiler