added ability to output very basic text-format files