Composition and Galactic Confinement of Cosmic Rays