added replication example && fixed some typos in examples