optimized imports and formatted code
rearraged code
rearraged code
fixed unnecessary type casts and boxing
fixed a bunch of spelling mistakes
minor fixes and spelling
a couple more fixes