add some comments, minor changes