Added correlation parameters to data genertion to support arbitrary covariance matrix.