Reading serial output of Xbee radios properly and cleanly

I figured it out. Instead of using faludis example of

if xB.available()

I used

while xB.available()

Fixed everything and now all my zigbee outputs are clean, and full transfers.