updated examples. fixed small bugs there.