Created a function in getPayLoad that uses the canaconda data type, rather than strings. still need to work on rest of function.
Also changed name of some variables for consistency.