adding pitch circle and improving main class