Initial API
Merge pull request #1 from alainw/master

Query API