Updated the text output part of the demo, and also added a yet-untested function to swap two letters in a file in a robust fashion.