SMS: Geometric integration theory