writes documents of mml module