Complete with missing steps

* add unzip and heading extraction steps
* cosmetic rework / parametrization