Reorganization of files into categories