missed a $d on a definition (h/t NM)
replace cdsum with iun (MC)
comment nit fixes from Gérard Lang