Make format_header a classmethod
Add inline fileparser

This is an experiment to see the effects of switching the fileparser
to output just after the file is parsed.