Revert "Adding a bit more proper header parser that throws error in case the checks won't match."
Revert "Adding a bit more proper header parser that throws error in case the checks won't match."

This reverts commit c3bc6204cdcb47c78db720617ef114fe9167a74e as the code committed there
has not been checked properly.

rogersce/cnpy,rogersce/cnpy