Added initial .gitignore file
Fixed more scoping issues