added time length of simulation and temporarily fixed long ID bug