Fix tests.
Add doc distance to word command.
Add notebook.