fixed reading of files and use of -q
Merge pull request #150 from r3dunlop/master

fixed reading of files and use of -q