Minor performance fix, added verbose flag
If run without files in arguments, will read the filenames from stdin. This makes it possible to use in pipes without xargs