fix some compile bugs
            this commit change the return status,we replace the return type from const char* to int,this light the users' burden to judge the return status; and also change the code style according the google stytle!