Add DocumentInfo support, closes #142.