Got multi-line read functioning in matrix class