C/R: fix modularity formula and reference