add some comments.
modify completion templete to make the last jumping point exactly right to the rightest braket.