bug fix
conforming relevant variable names
removing test-print statement
Merge pull request #2 from vamatya/master

bugfix, correct parameter for function