occurrence_plot added with minor fixes elsewhere