adding serial commands to code for remote control

sorry am a complete noob when it comes to coding...

There is a world of difference between being a noob and being to lazy to try something. There are, as I mentioned, a bazillion examples around of how to output serial data with a wire (USB cable, FTDI cable, whatever). There is NO difference in the code when you use XBees instead of a wire.