Draft of main function with getopt function example