Added commenting to the Document class