Fixed syntax errors and other small changes.