improved documentation for as.tdm