Global scope pollution checks included
Review fixes for globals-detector

Closes #11
Fix, local vars instead of polluting global scope