I'm actually quiete happy with the (slightly adjusted) values now as a javelin throwing unit may just get the edge needed over another one that doesn't throw.
After some campaign battles I must say archers are just good too since they don't do as much damage against units with shields or armor (even naked fanatics=shields sufficent).

So what I said before was kind of bullshit, since the game allready calculates from where a shot has been taken (at least it seems to me) and wether or not the unit has a shield.

Is this hardcoded and just reads some values (for amour for example) from files or is it handled in another config?

And does it make sense to put elite units on right flank, since the right side is more vulnerable?