Reorganized to operate from a CMA directory with subfolders for the datasets