Cleaned up some example code.
Fixed some issues with how output scrolled in the CLI.