Added ability to change document_type on a class level - closes #204