Update and improve documentation.