Adding new funcionality

Adding a query file for the higher leverl querying functions and the
corresponding documentation.