FIX: minimization of the number of casts by using uint more extensively where not a problem
ADD: checksum verification working ( currently only for EOF records )