Flatten urls and referrers of all documents
Add .gitignore
Add debug function