save and load function

got the save and load functions to work