Code correction and fix typo.
Merge pull request #112 from pyrocat101/patch-1

Corrects code and fixes typo.