Updated documentation

Added full documentation of the query builder