split into multiple lines for readability; added some preambles
fix up paths for loading the example thumbnails