added comments to ad.php