Jehanne, Catholic Martyr has his own unique theology which I'm sure he'll share with you shortly, but you'll find most of it a few pages back on this forum.
Basically, Thomas was not a heretic because his though was not condemned until after his death.
(In fact, I believe it was never condemned at all, but CM will clarify.)