document the CLI code a lot better