Add missing semicolons and remove whitespace