Correct typos, rewrite comments for python matrices.