Added orbit history tracking and command line option 'show_orbits'