adding a query function
Merge pull request #6 from ThirdPlanetOut/beta

adding a query function