Changed command structure

Changed the way commands are sent to the base station (prepended length
of command and target mote to commands).
Also changed some related variables.