Added mean_density parameter to foreground.py