add comments

add comments to describe the purpose of program and how to control it