avgNumInteractions now takes care of clumps
some improvements for previous commit