math/mpgen, symm/multigen: Add copious commentary.