Fixed #41 - Implement document type