First version of header parser

Based on spec, hex dump and ruby parser