fix bug: log format missing
fix bug: add missing os.stat / add comment
refactory: refactor FolderScanner
refactory: remove no longer use code
refactory to shorter source code