for better argument parsing on the command line
updated to use better argument parsing and help line