Contribution To Entanglement Theory, Applications In Atomic Systems And Cavity Qed