Better text file saving and loading