Add script to run doctests on code examples