Changed the code to output link file corresponding to each cluster.