Added support of query strings.

Signed-off-by: Amrykid <amrykid@gmail.com>
Handle a possible bug.
Added a better query example.