Add class wrapping document-related things