fix issue #1

Added check to see if filename should be ignored, and a testcase