reverted changes to documents.py

will commit changes when finished