Fix and improve documentation.