Added wrappers for SparseMatrix and Vector, small refactoring
Added documentation and newMatrixInstance()