matlab writer decent, and hdf5 reader deals with it, but some issues still with matlab output (size of sigmas compared to phi)