1. Implement save and sync function.

2. Testing save and sync function OK.
modify debug log message