Added saving of files. Changes now commit to the json file and objects can now be added too.