Parameterize the mask file, the output format file and the output mask file (issue #2)

Makes the script read the output format file through the -output-format parameter (issue #2)

Makes the script read the output mask file through the -output-format parameter (issue #2)