added debug print
changed the order of link extractors to scrape as soon as a match is found
clean up and addition of debug print