cleanup the CMakeLists file, tweak gitignore