Added check so that sum of deme sizes must equal sample size of input