Added a first command line parsing using getopt