added comments to explain search.php