Changed example 2b to be something more useful and less frivolous
issue #500 added temporary directory preference + -t switch for headless mode