Started on code for all components, added UT for the CLI.