add comments for some frequently used routine.