A new non-relativistic, electrostatic Particle-in-Cell code named bender has been implemented to facilitate the investigation of low-energy beam transport scenarios. For high-intensity, low-energy beams, space-charge compensation resulting from the accumulation of secondary particles - electrons for positively charged ion beams - is an important effect. To improve the understanding of the dynamics of the compensation and the resultant self-consistent steady state, ionization of residual gas as well as secondary electron production on surfaces have been implemented. Some first results of these compensation studies as well as further applications of the code, among them the chopper section of the future FRANZ facility, will be presented.