added example code

added config and command line example, made config more clear.