Created TextWriter class.

Moved the logic for writing to file to a separate class - removes
clutter in the main method. Document now being created on MY desktop,
but will be updated to save in a general folder (possibly).