add dependency for ruby 1.9+ and docopt gem
Use ARGF; Use arg instead of cmd for monitor; Use script basename
DRY freq map vars; tweak stats pretty print