Fixed a small variable name issue

-Modified readCookie function to be a little more efficient
-Fixed some parameters not being passed in to the checkForDups function