Cleaned up and annotated the ragdoll script