Integrated code from ddg.snapshot into ddg.data. The function now attempts to determine how data should be saved based on the value of the data. Simple values are written out as before, complex non-graphic values are written as csv, graphics as jpeg(default), and other objects as .txt files. Error is raised if none of the above can be accomplished.