Introduced ARGV handling for parametric script. Little refacoring