save and load functions written

still need to be tested