The Particle Tracking Code BBCNI for Negative Ion Beams and its Application to BATMAN Upgrade