Start reworking main program, replace getopt with ReadArgs