Changed the documentation in the header.
Changed the way the results are reported - now printing also the total number of files