add semicolons, fix mixed tabs/spaces