Creation of pure multi-mode entangled states in a ring cavity