Still not sure about how to approach the meld format

There are a lot of challenges in trying to get the order of things correct so
the headers, etc. all get written once.