Some Minor Cleaning
Solved File Locking Problem