fixed mistyped variable names and inputs
Merge pull request #2 from dmordom/patch-2

fixed mistyped variable names and inputs