If you are interested on developing your own chart of accounts I will recomend you to read this how to.
The account_es maybe is to complex for start: we have two diferent charts in the same module and several advanced reporting which is not required for start. So if you want to read it please take this facts in account.