latest code for charge transfer calculations