uses proper DIRS.mat file
saves to correct file
now uses DIRS.mat
uses proper directories