Fixed some errors in NCM, added the NCM function set, added interface
for NCM.