Fix some docs in the document module

Dunno if there is some automated way to generate those docs, but i found some inconsistencies with the online docs for the document module, had to check the C code to figure out.