How does the split ring commutator work in a d.c. motor, and the slip rings in a a.c. generator??? i'm confused between their functions :P