Monthly fix first

fixed some bugs in the computation of prevalence and persistence.