Fixed bug in gear pitch radius and renamed components

Pitch radius was calculated as a straight line. Now it is calculated
correctly as the arc length.