STPBase: added chooseInterface(), comments edited.