Fixes #2

Also adds log writeln for each new file
Merge pull request #1 from justmatt/patch-1

Fixes #2