Add some syntax checks, and fix syntax issues