Changed EM cals to turn blue (common convention) and made it possible to make energy loss a function of particle type.