bugfix
updated to use DIRS.mat
Merge branch 'DIRS_update'