SMS dit: Geometric integration theory