Patches for quality improvements

Fixes various issues related to

- spelling
- trailing whitespace
- hard tab characters in .rb files