added function to plot contours and density of probabilities