Fix stats and improve documentation.