Fixed a few syntax errors and made some cosmetic changes.