Added gitignore
Switched to package format 2 and removed deprecated stuff in CMakeLists.txt