Reuse the same cstruct for some header info in chksum calc
Added a simple profiler to time various function.