separate genSim function from TCC_public. removed 'group' argument and add 'replicates' argument instead.