correct spelling mistakes
remove unused code