Add persistent dispatcher example code.
clean up and fix default example