TODO
* Enhance error handling - no program exit but a nice return
* nicer prints
* return error in sector message

* build offset table while reading ?
* create a offset table per segment file
* create it on demand
- section list per segment table is done

* the write function works only when a data section is at the start of the file - why ?

* validate header values - write

