Add examples, change lib and the whole implementation of config-tree