What is goodwill and how is it accounted for?

What is goodwill and how is it accounted for?