Add docs for statistic

I didn't fund any documentation for writing docs so I hope I made it properly :)