Fixed bugs in twomode.triad.census and added tmtc2stc