Added comments to TM class