expm() changes and sparsity() fixes