renames files now and accepts directories as arguments