Writing documents for modules