Added nice formatting for outputting matrices.