api and use of configuration file

This is just for the api. Tests will come in another pull request. I programmed like as we defined the specifications but I am not really sure of the origin node use. (ref cahier de specification)