added support for slackening and cluster cleanup with barycentric clustering