added docs for stats class