added .gitignore and a few CMakeLists.txt files.
added missing directories, updated .gitignore.