added function to find radius and length from path