working on the parseOptions implementation. For some reason optarg is always null. I still need to solve this issue.