Added periapsis and apoapsis calculations