Add a bit of documentation
Document gallery.js too