File format specification found here: http://www.daylight.com/meetings/mug98/Yang/lenguas/tdt.html
Sample code can be found with RDKit: http://rdkit.sourceforge.net/wiki/index.php/Feature_Overview