use Pandoc-style template instead of XML builder
flatten metadata table for easier handling of attribute names
improved parsing for Pandoc-style templates
fixed unit tests
added placeholder for copyright statement