documented xbee.cpp patch