Code refactor

Updated both .gitignore and .gitattributes for git to [ignore unnecessary files](https://github.com/github/gitignore/blob/master/VisualStudio.gitignore) upon commit.