cleaned up more of documents.go