Add missing semicolons and fix indentation.