revised the save function
almost revised the load function
revised some bugs