Minder's comment answers your question and gives a great tip for maintaining polarity of the voltage coming from the commutator. And the field is supplied by a PM permanent magnet. In a car system however and in many other motors, the field is supplied by an outside source and this will complicate any attempts to use a motor for a generator/alternator.