make file creation and deletion sychronized
Merge pull request #93 from GraceH/editlog-sync

Make file creation and deletion sychronized
code clean. add more comments.