Added configuration parser to read conf from file