Code to generate simulated data files