cleaned up spelling, typos, and whitespace
more code cleanup