Updated the setChannel API to accept a params object rather than seperate arguments. Introduced success and error callbacks for setChannel