implemented argparser for handling command line arguments