Use library to parse the command line arguments
Currently the command line arguments are parsed with manually written if ... else if ...
. Additionally the arguments are parsed in different locations. Instead we should use a library such as Boost Program_options.