Added comments to the search function
Added handler for search button

Upon clicking the search button, it now calls the search function and
performs the search with the query that is in the query box.