fix missing semicolon and trailing spaces

Nothing important here, just some quick style fixes.