Add example for ahead_behind method

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>