Mark -
1. added some code to handle file-locking feature
2. file syncing with threading is on its way