Updated documentation
Added howto for querying