created a list of dir names to ignore in search
added ignore_dirs array to settings
moved settings to global variable