change command line arg parsing and added defaults