update dir, working test for readmatrix