adds an optional query object
Merge pull request #25 from warbrett/queryObject

adds an optional query object