added pseudo-commenting to main scraping function