Companies are defined as made of four units the front line and two supporting units. The company leaders are not considered. These four front units are considered as one entity with attack and hit points taken as sum of the attack and hitpoints of all units in the company, and a defense defined as the sum of the defenses of the units in the front line. This simulates the fact that a battle is usually lost once front units are gone since the support units usually have low hitpoints. The percentages are expressed as ratios to the sum of both values.
Gold refers to upkeep only.
The other parameters should be self explanatory. You can probably simulate the effects of blessing by a cleric by raising the experience level of your company. Check the Unit1.cpp file on how the calculations are done. Feel free to edit it as long as there are ten entries and no empty lines you can create you own units.