Feature/fix issue 29

This fixes issues #29 while also adding support for per-file ignore settings.