Merge pull request #30 from shantanugoel/fasterignore

Make ignore patterns faster + a few other fixes
Merge branch 'master' into mymaster