added OptionHelper to simplify option parsing code
merged TimeUnit parsing into OptionHelper