fix spelling, add more comments