SMS versenden: Theory and design of charged particle beams