Study of CP Violation in Flavor Tagged and Untagged $D^0 \rightarrow K^-\pi^+$ Decays