Added build to gitignore
Used a linter to find some bugs and remove unused variables