fixed some syntax errors in various files