added some more documentation to the visitor