fixed errors in examples