Updated the simulation data generation code. More comments and output description.