Added some zmatrix utilities, and some preliminary test cases.