Fixed matrix unit tests.
Minor fixes in the Matrix class.
Matrix class documented.