Added CLIException and CLI example.