Added support for document class configuration