Implemented load and save, happens automatically on startup and close