updated correlation calculations, now refer to correlation coefficient
as 'r'.