Added calculations for covariance matrix and direction/elongation