remove commented statement in CMakeLists.txt
simplified class scan_dir
remove useless code