Add function to check covariances for consistency in stochastic simulations
Merge pull request #518 from JohannesPfeifer/check_covariance

Add function to check covariances for consistency