refactors to get rid of web scraping and implement reading from text file