Add/improve documentation for types.visit and NodePath.

Closes #5.
Closes #43.