add doc-strings and comments to sparsematrix.py