refactor code

change config file parse
update example config