digital: added a header parser (inverse to header generator)