Correct spelling and add comments