Update parameter notes about sweep parameter.
Fix tests according to coverity scan hints.
part of #70.