Text this: The Hamiltonian Structure-Preserving Control and Some Applications to Nonlinear Astrodynamics