Reworked data_gen.js to handle (forgotten) multiple time runs for different quanitities requested