sim.data function added and some edits to scrData