Pull in edits to allow getData to take an array

@d3vit Can you update this file now that you're integrating your changes in the script vs. creating your own.