Initialization of XP-control variables & resetXP().