Code for creating a large dataset, fixes #16