Add and improve comments in chat_stats