Added parts of config and documentation

First implementation of the config file and a beginning og the code
documentation