modify dec API from void to explicit type, and some comments
Merge pull request #884 from huili2/API_dec_modify_master

modify dec API from void to explicit type