minor rewording and typos in docstring