dataset generation

- added dataset generation to createTrialSpec (but still need to add
retrieval of old dataset)
- deleted some no-longer-used functions