Fixing tests as well. (with as.hclust for sub dends.
Several bug fixes to the docs.