modified reading and loading matrix files, now have directories