make initial change to variable size matrices, fix toString