Finished saving and opening data

Basically all the function are done, and remain bluetooth connection
test.