Can you add some comments around the following cases:

1) if the cms.freq == 0, we don't send to reducers.
2) if the cms.freq < maxPerReducer we still send something (the ceil.toInt seems to do this, but a comment will help).