changed the way putLastMessage was writing back to the txt file--was causing file to be completely overwritten