Documentation: document the stats API