added directive for resizble matrices.  Extensive updates to
matrix mode, still in progress