fixed cases of some variables within the functions, and also variable typos

Some variables were specified like productID in the function method however in the function code they were mentioned as productId also fixed a couple of typo's in variables.
Merge pull request #1 from aaronwardle/patch-2

fixed cases of some variables within the functions, and also variable ty...