now the frequency of executions (period) can be specified in constructor
when restarting a task, use its previous period (frequency of execution)
now using the -f (or --freq) command-line argument to set the period (frequency of repetition)