Cleanup of code + .gitignore file

Diff seems a lot but mostly comes down to 4 spaces for tabbing instead of 2 and === instead of ==