Added new methods and docs to Matrix class.