Fixed global vars & function declaration tests
Added project files to .gitignore