Improve documentation & add comments to MathArray & Matrix