Improved load,save and print to avoid AssertionError
Added tests to GenMat