Added configuration and Logger
First implementation checking pid-files