add docstring examples in dispatch

1. Dispatch on instance methods
2. Isolated namespaces