Added tests for stats and utils headers. Added documentation to stats and utils headers.