added .gitignore and fixed some formatting issues