added reading from file clustering into a function for nucCompCluster