Added reduce_vector method.
Added parsing args.