What is Mark Twain trying to achieve with these stories? How does he do it and why?

What is Mark Twain trying to achieve with these stories? How does he do it and why?