added delay to xbee dataReady and created connect module