various fixes and allow for zero length sets
get_specific_orbital_energy and fix for commit before get_gravity