Acceleration and Propagation of Cosmic Rays