added callbacks to CLI class.
updated example
added input parameter to CLI.request().