Clone and enhancement of the XBee Arduino library from https://code.google.com/p/xbee-arduino/