added saving code to pop_data_simulator --AG