All you need to know is this:
Before Pakistan was created, India was on the path to self destruction, due to the presence of islam. Creating Pakistan was the only way to save itself.
Pakistan was created out of the western India, where the "militant" muslims were concentrated.
More than 12 million(!) Muslims and Hindus were exchanged between India and Pakistan. Unfortunately, although virtually all non-muslims left "pakistan" for India, many muslims remained in India, but not enough to make a basket case out of it.
As for Pakistan itself, it is demonstrably no different than any of the other muslim basket cases in the middle east with one crucial difference: it has nukes (the result of the technological level in India when pakistan was created).
There is not a single "officially muslim" country (as opposed to a secular one like Turkey) in the universe which is not either totalitarian or totally chaotic...
Excellent summary! As you mentioned before the muslims had their chance to leave hindu India completely and move to a totally muslim country -- Pakistan. But many millions of these fanatics elected to stay in India and keep causing trouble because of their designs on the rest of India.