fixed usage of RGB & RGBA in using XML files, and added some comments