Could you please add more explanations for newer users? There is a lot going on in this sketch and it is hard to understand what to modify and where to insert the new code.
There are two main functions:
The updateDatapoints function is the function used for send data to Xively. responseListener check the reponse from Xively.