Cleaned up some formatting in document.py