Fixed a typo, and corrected some variable leaks into the global scope.
Merge pull request #1 from cgiffard/master

Corrected 'character' leaking into global scope.