Diagrammata is copious explanatory text to follow.

The actual program is here.