added tmp directory .gitignore and fixed bug with temp vars