Code formatting done.
Modified .gitignore to not recognize CPack cache files.