Merge pull request #15 from martinghunt/master

added option to invert filtering of sequences
Make sure files get closed if stop iterating before end of file