Adds some changes to the scripts, and reformats single gallery type.