fixed config bug & add some examples

fixed config bug & add some examples