major update about configure. & minor update

change behavior of configure. & main.c wrote some comments.