What is a troubadour and what was their job?

I Troubadour was a travelling, noble poet-composer from the South of France whose job is was to entertain and spread new and the best music from place to place.