shared memory now counting grant refs upwards to avoid knowing max number
new epidemic model scripts
error in shared memory size method