adding main and CMakeLists.txt