Was Kham an independent country?