Update

Added save and load functions.