Fix a bunch of spelling mistakes and improve code
Fix another spelling mistake