How to prevent ragdoll parts from stretching apart?

You should use pelvis for that node. If you examine the ALS template, you get the whole workflow.