some comments and minor changes