correct simulation lengths, clean up files