Documenting src/document.h
Adding additional documentation