Rewrote the parsing of the header files so that it does not depend
on 'head' and 'tr'