Update to write answers to text file