minor edit to comments and formatting