Enhanced to accept the --period option.
Descripbed about command line options.