Fix some format issue and add some comments.