Fix bug in grammar for parsing header text
Quick and dirty code to parse headers