Changes to make the scope selector and exclusion function propperly.
Merge pull request #2 from cjmaynar/master

Fixes to scope and exclusion