fixed spelling errors, unused variables and unused import