Clearer variable names, fix typo in comment.
Merge pull request #362 from Dmitry-Me/betterVariableNamesFixTypoInComment

Clearer variable names, fix typo in comment.