Cleaned up dumb mistakes and fixed a variable use

So I guess variables only need percentage signs MOST of the time. Declarations are obvious, but apparently comparisons don't need them either.