add save and load file

add save file and load file functions.