Fixing documentation and duplicate variable declaration in params.