fixed spelling mistakes on comments and fixed indentation issues