added most of the scraping functionality + error messages