Added writing revised list back to file