Added a simple test sequence from discussion forum.
Added comments to the code; Added assertions to matrix setters.