Refactored the statistics
Added some documentation about the statistics