In TCRs, diversity can be generated by recombination and reassortment

In TCRs, diversity can be generated by recombination and reassortment events as in Igs. As is the case in Igs, additional diversity is generated with somatic events such as N nucleotide additions and reading of the D segment in all three reading frames. Explain these diversity-generating mechanisms.