fixed some typos
fixed code samples in The Traversal section