Add examples of xhrHelpers functions

Adds examples of xhrHelpers functions for better documentation.

**Edit**
Can also piggyback a fix for #2 if desired.