Now added sampling functionality and calculation of the lincoln estimates of the population size.