Fio + Xbee communication and variables transfer

Sorry that is an old code.(but that worked same as the new one) The new one doesnt have integers but bytes.The Serial speed is 9600 because later I want to use XBee 900 XSC and it cannot work on higher rates.