Hello Dimy,
For ZigBee applications is recommended to use BeeKit, which generate demo applications. You can download BeeKit, from www.freescale.com/zigbee. After you installed BeeKit, in installation folder you can find a lot of documents (\BeeKit Documentation), which can help you to start applications and to understand ZigBee standard.
Regards,
Adrian