Extract features function

extract_joints no longer inside of this function