removed some comments, added savefig for dendrogram