remove useless files and fix CMakeLists.txt