Added handling of arguments from the command line when the program is run