add first-draft structure exporter, needs layers function
written+testing