Added a config file
Monor correction wrt logfile