Fixes #2

Also adds log writeln for each new file