handle renaming of files; refactor main behaviour into own class; sanitize fileNames