corrected syntax errors, mostly improperly terminated statements