Added end stimulus. Minor changes to demography3