Added functionality for creating non-datafile datasets as well as adding external datasets.