Added some explanatory comments for the X,Y arrays