Added comments to my functions and the joint calls