Reference code implementing sample demo scripts and applications