fixed spelling errors in comments and indentation