Breakdown of xml gallery

Hi all,
I have downloaded the xml gallerys and am trying to customize the one with thumbnails. Does anybody know if there is somewhere that gives a brekdown of everything to construct the gallery from scratch. I have tried customising myself but feel that to understand it more it would be good if I could build it myself from the ground up.

Thanx in advance
R