Change to use util module for appending a report table.
Improved document structure builder.  Bug fixes.