Added some features to the program in the getopt section