tp-doc: tp.h header documentation.
More comments in tp.h.
Merge branch 'stable'