Bug Fix

The code, had a bug in it that caused the text file to append and grab
everything previously typed, causing huge duplication. Fixed with a
change to the appending