The simplification code is available here.

The RST relation indicator list is available here.