Small cleanup of stat density

To keep the code clear and the documentation in line with the code.