many small updates, but mostly incorporation of a new
debug type for sparse matrices