Docstring fixes

Corrected wrong variable name and made grammar corrections
Merge pull request #7768 from terminalmage/docs

Docstring fixes