Better construction of records (checksum is assigned apart from the
type)
Improved the output of the result