Updated write_cov to add option to not write projection or bads in write_inverse_operator to better match C version of the function