Added the ability to save both XML and JSON files to the local machine to assist with debugging.