Add main ; update .gitignore adapted to C++ and Qt files