tp-doc: tp.h header documentation.
More comments in tp.h.