Incorporated some suggestions from Alxnr.
Added code that hopefully paves the way for a scraper.