Fixes for ignoring files and dirs.

-Added code for ignoring dirs. Issue #45
-Fixed wildcards for ignoring files
-Changed preference variables names to fit what they are for