script to run examples from documentation