Massive typo and mistake cleanup

I have been creating code non stop without testing or checking my
syntax. Now that I'm finally checking it all, I'm finding the huge
errors. This commit cleans up some rather annoying typos I've made.

At the very least, I was consistent with them. Does that count for
anything?