Restructured .gitignore and added global settings