Various errors in syntax fixed