refactored confog class, close #8