Added save and load. Loading of old format currently missing.