Fixing a bug with gallery substitutions, and adding a README