add comments and fix spelling