oppDistFun: improved documentation
oppDistFun: fixed indexing problem when local slice size is <= 1
Merge pull request #1 from slimgroup/Tim

oppDistFun: fix a problem with local slice size <= 1