Cleanup of logging and example.
Adding missing class, struct, while, and finally checks to the walker.