added some comment and create the two group of contor unit api