Fixed doc string for doc_type method

Fixes #21, thanks lvyaojia!