Added CLI Handler

Added Command handler in an managed endless loop