Added $dataset reference to the overall collection, including support in
hiearchy templates
Some support for csv metadata preambles