added documentclustering code