text and rect elements added to node in matrix.js

auto.adjustment of text width and height in node elements