cleaned up formatting (including deleting uses of 'else{}' and 'which') up through the time loop; uncertain about why we are writing to a file with extinct populations in the second to last if statement in this loop; do we need that?