got the basic machinery for data generation up and running, moving this from the Coffeescript version