made search query string more flexible, added docs