Add configuration of archivers; refactor the code

closes #6