added missing set for version, added json conversion for saving