finished up some basic covariance io functions