minor improvements to repetition calculation

doesn't print so much noise when you run it, and now you can
pass multiple files to compute_repetition.