Changed some of the error testing in the header script

required the parser to detect 4 fields in the line of the header before
adding to the structure.
This change prevents rare occasions where something more than the
header is given in the header input struct