Thanks chaps, appreciate your comments.
Mark, I generate commanders down to brigade level as that is the lowest level of independent commander whose command and morale effects can influence the units under him. I guess the influence of the battalion CO is taken care off in the stats you select for the unit itself, that reflect their training, confidence and ability or attitude, knowledge and skill in modern parlance.
The commanders at all levels are key to maintaining your units in the field when things start getting tough and their competence affects how effectively they and their commands will operate. In the last Talavera game, Will positioned Hill and Wellesley behind his second line on the Medellin to act as the morale backstop for units shaken by the French attack. Two units fell back through the second line and were immediately rallied and steadied by those two senior commanders and returned to the fight.
Attaching a commander to a unit can exort it to greater efforts during a combat and units on defend orders can only charge with a commander attached. The risk with this tactic is to the commander should they lose the combat and we have seen quite a few have horses shot from under them or killed or wounded. However an effective commander leading fresh good troops into close combat can be a really effective tactic to winining an important fight.
I hope that gives you an idea of how they work
Cheers
JJ