added ability to read matrix from string (still needs ability to increase size if necessary