Update API doc' and remove useless variable.