Updated git ignore and CMake main script