needs fixing for document types, but that should be in a commandline flag instead
Commandline utility that automatically finds and renames files to their correct file extension