Merge updated statistics functions, tests, documentation, and tutorial sections See merge request !18