First version of header parser

Based on spec and hex dump of file, also with help of ruby's parser
GTP