Small fixes to documentation and code formatting in visitor.php