final code and a few dendrograms, plots, etc