fix bugs about synchronization problem
add .gitignore