Update stats.rb with documentation.