Search Query

Search query debugged and updated with flowchart. Edited comments