Updated comments.
Added a test for statistics.