altering simulation to accept hdf5 files