The axoneme is connected to a basal body embedded within the cell. The flagellum of bateria ehibit motility through a different system. The flagellum consist almost entirely of one fibrous protein flagellum. The protein rotates and thus creating mobility for the bacteriaThe driving force comes from the creation of a prtein gradient generated by ATP hydrolysis as protons move across the bacterial inner membrane. The flagellum can rotateeither clockwise or counterclockwise creating some directionality of motion.
Bacteria can also exhibit chemotaxis, a response to chemicals.
These bacteria move toward attractants and away from repellants. While I can see the design of the contractile motion system, I do not fully understand how the ATP binds and fuels the system. The presence of carbohydrates are important biologically because they are required in both photosynthesis and respiration. They are categorized by the number of sugar units and their stereochemistry. The number of possible stereoisomers is dependent upon the number of stereocenters contained within the molecule.