added file and segment lengths to checksum.c