Fixed many things including putting cli to a seperate thread, added transcode code, fixed compliance and output
Added ui to create instance of cli class for use in seperate thread