Move around some TMDD conversion code
Document TMDD converter