Added debug code for IK

dumped text is euler angles in degree (csv format)
Changed to stop calling animation functions after animation is finished

This is useful when comparing debug data of IK.