added plotting of distributions