Fixed a few syntax issues in the code.

Nothing really new. Just trying to get this to at least run for now.