make use of some better types
increase error count if startCode is incorrect
checksum input lines