filled in doc.py and contact.py

I'll refactor this into a common authorization class