Gitignore update
API is extended to handle some query functions.