added formatPathsForanalysis.m