update docs. convert 1x1 matrices/vectors to scalars.