Implemented clustering algorithm to assign colors to terms; Text in feature panels in the diagram editor are now centered.