Added documentation for visitor.register()

Added documentation for visitor.register()