minor logging formatting fixes and MAJOR bug catch in hierarchical clustering