Fixed bug in plot_raydensity. Potential division by zero still needs to be repaired.