integrated options into the program.

program requires --pgtype array
as an option now.

... need to make the default config file so it doesn't need to be
written on the command line.
Merge remote-tracking branch 'refs/remotes/origin/master'