Add support for more documents

chains.py updated
All the files in data/urls.txt are cleaned and imported successfully.