Add newlines around functions and classes, remove trailing whitespaces. original-commit-id: 9ddcf90fccbab1f7be75c8675d875472ef016945