added align string
added config argument to getMatrixByRow
added nicer output