Fixed error in Spotlight reload + added gitignore
Updated gitignore
Merge branch 'master' into Issue297
refactored, and fixed a bug when dirKey not exists