Lots of bugs fixd in sparse.pl... doubtless there are more