grab.php: minor cleanup and commenting