Added restrict options to connectCounts, marginCounts. Reconfigured connectCounts to go through all pairs when computing totals.
Added tests for restriction to marginCounts, connectCounts.
Added documentation about restrict for connectCounts.