diagnostic print working. Preparing to add ability to write combined headings