Describir: Beam-based Correction and Optimization for Accelerators