Added basic text saving, lots of work still to be done.