updated leg module.
added new util modules and updated limb module.