The Theory of quantum coherence