fix formatting and duplicate charge beam in espurr