Fixed assorted syntax and language errors