Hi ndonj86,
welcome to the forum dedicated to intel galileo.
Do not worry about your English ... you'll have time to study it !!
I solved a similar problem to your programming directly modulating the Xbee Arduino IDE.
I advise you to study in depth the Arduino IDE commands and in particular the serial transmission between the Xbee Shield and the board Galileo.
Bye