Refactor codes
Add stat-file option and update version
Fix typo bugs
Remove varify redis responses
Change variables declartion positions