added residual  and orbit attribute to the Orbit class.