clean up header export.  clean up parsing of layer-data.  it appears
that templates now scan, export, and import.