modified void_distribution.py to incorporate density and class changes