fix indent
improve file buffer boundary checking
fix checking hashtable parameter
fix checking document exists when update
Merge branch 'develop'