added matlab code and final dir names