In his work for The New Yorker and especially National Lampoon, he was unafraid to offend people. But his primary goal was to make them laugh.