update pear-tool, added parsing of matrix and vector