fix RunQueries to return results for all queries

nested for loops both used `i`.  Top for loop was exiting early if inner loop set i to a value greated then `nreqs`
Merge pull request #5 from johnmarkg/master

RunQueries sometimes doesn't return results for all queries.