fixes issue #6031 spelling errors

corrects the spelling errors listed in issue and a few others I found. fixes #6031