The Adventures of Huckleberry Finn-
Relevance of the novels ending

The ending of the novel "The Adventures of Huckleberry Finn", by Mark Twain, is very relevant to the themes and ideas of the main body of the novel. Although it has been criticised for being too long winded and being the downfall of this great novel, it is very important in reinforcing the messages put forward in the rest of the novel; the greatest of which is the shortcomings of modern society and the hypocrisy and arrogance, and even stupidity of the people of Mark Twains time.
The argument that Twain seems to put forward time and again in this novel, that the simple people, like the Phelpsí, the kind niggers like Jim and the uneducated but morally right like Huck are really above the aristocrats and big plantation owners, who are "civilized" and "cultured", but carry on with pointless feuds, and keep niggers as slaves. These upper-class sorts think that they are far superior and much more important than anybody else, and an example of these and the conformation that they are so arrogant and stupid is Tom Sawyer.
Tom is a friend of Huckís from his old town where he used to live. He comes from a relatively wealthy family and has had a good education and upbringing. He is around the same age as Huck, but we can see the difference between these two, one who is "cultured" and "civilised", and the other considered to be an outcast, even "feral".
Tom meets Huck at his Auntís house pretending to be him. In turn Tom pretends to be his brother, Sid Sawyer. This way they fool Tomís Aunt and are able to focus on one problem; freeing Jim who is being held the Phelps to be a slave. To Huckís amazement Tom agrees to help him free Jim, which would be to break the law, and because Tom comes from such a good family and is educated and so on, Huck never imagined that he would be willing to help him. However, Huck doesnít realise that Tom isnít breaking the law at all. Jim has been freed without his knowledge, but Tom just plays along to have an adventure.
They find that Jim is being held in a small shack, easily opened from the outside, and Jim is shackled by a leg chain to a bed, which can be lifted to release the chain. Huck devises a simple plan to release Jim so that they can escape together and continue down the river. However, Huck is castigated by Tom for being so simple minded and not thinking up something more imaginative and with "style".
Tom, being well educated and so on, has read many romantic type novels to do with prisoners escaping from jails such as Baron Trenck, Casanova, Benvenuto Chelleeny and Henri IV. He sees an opportunity to make his own great adventure out of this simple problem by making it as difficult as possible for Huck, Jim and himself. He believes that they should do it in the same manner as it has been done in these books. This type of romantic illusion Tom holds towards Jimís escape from captivity exemplifies the way the southern upper class fantasize about the way life should be. Tom lives in a dream world, oblivious to the dangers and problems he is causing to others to satisfy this fantasy.
He puts Jim through hell, but Jim plays along because Tom is a white boy and he has learned to do what he is told by white men, no-matter how stupid or pointless it seems. Tom also puts Huck through a very hard time, who plays along because Tom is well educated and from a good family so he must know how to do it right. Some of the ridiculous thing Tom does are to put a whole lot of snakes and rats and other unpleasant animals in the same room as Jim, because in the books the jails were all vermin infested, so it had to be this way here too. Also Jim had to carve a diary of his "stay here in prison for 37 years" into a granite rock. Although Jim couldnít write, Tom wrote the words and Jim just copied them.
Then Tom insisted