add common/function description and modify sample.