SMS dit: Analytical mechanics of space systems