Add functions file

Add functions file, load it in extract-archive and use an useful
function to configure parameters.