How do I make a custom battle?

I'm not talking about the in game option.

I want to edit the amount of men in each unit. I also want to give them the ability create fortifications.

I remember when the demo came out there was a way to do this by editing a text file. I'm not very savy on modding. Anyone have a tutorial I can follow?