- added function to save out all of the data to disk as JSON